import { request } from '../request';

// 获取在线节点列表（需后端实现对应接口）
export function fetchOnlineNodes(params?: Api.Common.CommonSearchParams) {
  return request<
    {
      ip: string;
      port: number | string;
      cpu: string;
      memory: string;
      status: string;
      raw?: string;
    }[]
  >({
    url: '/node/online',
    method: 'get',
    params
  });
}
